//
// Created by jerry on 2021/4/6.
//

#include <unistd.h>
#include <stdlib.h>
#include "util.h"

void uDelay(long times)
{
    usleep(times);
}

void Delay(int times)
{
    sleep(times);
}

char *get_string()
{
    static char str[10] = {0};
    int i = 0;
    int flag = 0;

    for(i = 0; i < 10; i++)
    {
        flag = rand() % 3;
        switch (flag)
        {
            case 0:
            {
                str[i] = rand() % 26 + 'a';
            }
                break;

            case 1:
            {
                str[i] = rand() % 26 + 'A';
            }
                break;

            case 2:
            {
                str[i] = rand() % 26 + '0';
            }
                break;

        }
    }

    return str;
}

char get_number()
{

}
